package com.maben.app;


import com.test.webservice.randomFonts.ArrayOfString;
import com.test.webservice.randomFonts.RandomFontsWebService;
import com.test.webservice.randomFonts.RandomFontsWebServiceSoap;

import java.util.List;

public class Test001_Wsimport {
    public static void main(String[] args) {
        //创建服务试图
        RandomFontsWebService randomFontsWebService = new RandomFontsWebService();
        //通过服务视图得到服务端点
        RandomFontsWebServiceSoap port = randomFontsWebService.getPort(RandomFontsWebServiceSoap.class);
        //调用webservice服务方法
        ArrayOfString chineseFonts = port.getChineseFonts(5);
        List<String> strings = chineseFonts.getString();
        for (String string : strings) {
            System.out.println(string);
        }
    }
}
